<style type="text/css">
    .knowledge_shangchuanjindu_yulan{width: 100%;    height: 5px;    margin-top: 5px;    border-radius: 2px;    overflow: hidden;}
    .lookrecord{ cursor:pointer;}
    .lookrecord:hover{ color:#39f;}
</style>
<div class="traintask" ng-controller = "QuestionListController">
    <!--筛选区-->
    <div class="traintask_top">
        <div>
                审核状态:</div>
     <div style="height: 29px; border-radius: 3px; border: 1px solid #ddd; padding: 0 5px;
                line-height: 34px; background-color: #fff; cursor: pointer; outline: none;">
        <select style="border: 0px; width: 112px;" ng-model="params.state" ng-change="getList()">
                    <option value="0">全部</option>
                    <option value="1">审核中</option>
                    <option value="2">已通过</option>
                    <option value="3">未通过</option>
        </select>
        </div>
        <input type="text" placeholder="请输入问答名称或来源标题" class="traintask_top_sousuo" ng-model="params.searchTxt" ng-keyup = "findListEnter($event)"  style="border: 1px solid #ddd;" />
        <div ng-click="getList()" style="float: none;">
            <svg class="icon" aria-hidden="true"><use xlink:href="#icon-sousuo"></use></svg>
            确认筛选
        </div>
        <div class="traintask_top_right">
            <div class="traintask_top_add " btncon="btnExamine" btn-obj="btnlist"  fun="1"  ng-click="Examine()">
                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-wancheng-copy"></use></svg>
                审核</div>  
            <div class="traintask_top_add " btncon="btnUpd" btn-obj="btnlist"  fun="1"  ng-click="openAdd()">
                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-bianji"></use></svg>
                编辑</div>        
            <div class="traintask_top_select" btncon="btnDel" btn-obj="btnlist">
                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-shanchu"></use></svg>
                删除</div>
        </div>
    </div>
    <!--内容区-->
    <div class="traintask_main">
        <div class="traintask_main_liebiao">
            <table class="tab">
                <thead>
                    <th> <div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="selectAll()" ng-class="{selected:checkAll !=0 && checkAll == List.length}">
                                <!--添加selected为选中样式-->
                                <span class="iconfont"></span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-if="false">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-xiugai"></use></svg>
                            </div>
                        </div></th>
                    <th style="text-align:left;width: 15%;">问答标题</th>     
                    <th>状态</th>
                    <th>提问人</th>
                    <th>审核人</th>
                    <th style="width: 20%;">问题来源</th>
                   <!-- <th>预览量</th>-->
                    <th>回复量</th>
                    <th>提问日期</th>
                    <th></th>
                </thead>
                <tbody>
                    <tr ng-if="List.length <=0 && !Loading">
                        <td colspan="9">
                            <center style="margin:100px auto;">
                                <img src="/images/null/null.png" />
                                <div style="font-size:30px;color:#a3a3a3;"  ng-bind="'Null' | T"></div>
                            </center>   
                        </td>
                    </tr>
                    <tr ng-if="Loading">
                        <td  colspan="9"><!--Loading-->
                            <loading isloading="Loading" ng-if="Loading"></loading>  
                        </td>
                    </tr>
                    <tr ng-repeat="item in List">
                        <td class="tdshou"><div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="singleCheck(item)" ng-class="{selected:item.isSel}">
                                <!--添加selected为选中样式-->
                                <span class="iconfont"></span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-click="addinfo(item)">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-bianji"></use></svg>
                            </div>
                        </div></td>
                        <td class="tdshou" ng-bind="item.title"></span>
                        </td>
                        <td align="center"> {{item.state==0?'审核中':(item.state==1?'未通过':(item.state==2?'已通过':'未知'))}}</td>
                        <td align="center" ng-bind="item.questionerName"></td>
                        <td align="center" ng-bind="item.examineUserName==undefined?'-':item.examineUserName"></td>
                        <td align="left" ng-bind="'['+(item.xtype==1?'课程':(item.xtype==2?'试题':(item.xtype==3?'新闻':(item.xtype==4?'专栏':'其他'))))+']'+item.xname"></td>
                        <!--<td align="center" ng-bind="item.browseNum"></td>-->
                        <td align="center" ng-bind="item.replyNum"></td>
                        <td  align="center" class="tdshou"><div class="traintask_main_liebiao_pxkstime_sj" ng-bind="item.createDate | to_time"  >
                                00:00</div>
                            <div class="traintask_main_liebiao_pxkstime_data" ng-bind="item.createDate | to_date">
                                0000-00-00</div></td>
                        <td class="tdshou" style="position: relative; text-align: center;">                      
                            <div ng-mousemove="item.isToolShow=true" ng-mouseleave ="item.isToolShow = false" >
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-ttpodicon1"></use></svg>
                                <ul class="dropdown-menu" ng-if="item.isToolShow" style="position: absolute;top: 10px;z-index: 999;">
                                    <li ng-click="closeOrOpenReplay(item)">
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-pinglun"></use></svg>
                                        详情</li>
                                    <li ng-click="openAdd(item)">
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-bianji"></use></svg>
                                        编辑</li>
                                    <li ng-click="delinfo(item)">
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-shanchu"></use></svg>
                                        删除</li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>

        </div>
        <!--分页-->
        <tm-pagination conf="paginationConf"></tm-pagination>
        <!------新增编辑弹框------>
      <add-question ng-if="showForm" on-save="saveObj()" on-close="closeOrOpenForm()"  item="item" edit-state="editState"></add-question> 
<replay-question ng-if="showReplay" on-close="closeOrOpenReplay()"  item="item" uploader="uploader"></replay-question> 

    </div>         
</div>
